<include file="Public:header" />

<div class="page-content">
    <!-- content starts -->
    <div class="cig-page-header">
        <ul class="breadcrumb">
            <li class="active">导入问题</li>
        </ul>
    </div>
   <div class="row">
    <div class="col-md-12">
        <div class="box-inner">

            <div class="box-content">

                <div class="row">
                    <div class="col-xs-12">
                        <br />
                        <form class="form-horizontal" action="{:U('/Import/import')}" method="post" enctype="multipart/form-data">
                            <div class="form-group">
                                <label class="col-sm-2 control-label no-padding-right" for="" style="font-size: 20px">Notice:</label>
                                <div class="col-sm-10">
                                    <p style="line-height:200%;font-size: 18px">
                                        <!--<h3>-->
                                             Import FPS data ,please make sure you file is smaller than [{$maxfile}].<br />
                                             or set upload_max_filesize and post_max_size in PHP.ini<br />
                                             if you fail on import big files[10M+],try enlarge your [memory_limit]  setting in php.ini.<br>
                                            <if condition="$is_w_ojdata neq false">
                                                You need to add  $OJ_DATA into your open_basedir setting of php.ini,<br>
                                                or you need to execute:<br>
                                                <b>chmod 775 -R $OJ_DATA && chgrp -R www-data $OJ_DATA</b><br>
                                                you can't use import function at this time.<br>
                                            </if>
                                            <if condition="$is_w_upload neq false">
                                                ../upload is not writable, <b>chmod 770</b> to it.<br>
                                            </if>
                                        <!--</h3>-->
                                    </p>
                                </div>
                            </div>
                            <if condition="$show_form eq true">
                                <div class="form-group">
                                    <label for="" class="col-sm-3 control-label no-padding-right" style="font-size: 20px"><em>*</em>Import Problem：</label>
                                    <div class="col-sm-9">
                                        <input type="file" class="input-upload required" id="" name="fps" /><span class="cig-tip">Please select the XML file</span>
                                    </div>

                                </div>
                                <div class="clearfix form-actions">
                                    <div class="col-md-3 col-xs-3"></div>
                                    <div class="col-md-9 col-xs-9">
                                        <button type="submit" class="save-btn btn btn-success"><i class="ace-icon fa fa-check"></i> Import </button>
                                    </div>
                                </div>
                            </if>
                            <div class="form-group">
                                <label class="col-sm-4 control-label no-padding-right" for="" style="font-size: 20px"></label>
                                <div class="col-sm-8">
                                    <p style="line-height:200%;font-size: 15px">
                                        free problem set FPS-xml can be download at <a href=http://code.google.com/p/freeproblemset/downloads/list>FPS-Googlecode</a>
                                    </p>
                                </div>
                            </div>
                        </form>
                    </div>
                </div>
            </div>
        </div>
    </div>
    <!--/row-->

</div>

    <!--/row-->

</div>
<!--content-->
<div> </div>

<include file="Public:footer" />
